import { post, put, remove, get } from '@/security/request'

export function getPageApi(data: any): Promise<IRespResult<any>> {
    return get("/admin/organization/getPage", data);
}

export function getPageOfMemberApi(data: any): Promise<IRespResult<any>> {
    return get("/admin/organization/member/getPage", data);
}

export function addApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/organization/add",  data);
}

export function editApi(data: any): Promise<IRespResult<any>> {
    return put("/admin/organization/edit",  data);
}

export function editLaborUnionApi(data: any): Promise<IRespResult<any>> {
    return put("/admin/organization/edit/laborUnion",  data);
}

export function deleteApi(data: any): Promise<IRespResult<any>> {
    return remove("/admin/organization/delete",  data);
}